package cxf.spring.demo.gui;

import javax.swing.*;

/**
 * User: Vlad Vinichenko (akerigan@gmail.com)
 * Date: 24.04.2009
 * Time: 14:36:37
 */
public abstract class EmptyFrame extends JFrame {

    protected abstract void initComponents();

    protected abstract JPanel getMainPanel();

    protected EmptyFrame(String title, int width, int height) {
        super(title);
        setDefaultCloseOperation(EXIT_ON_CLOSE);

        initComponents();
        getContentPane().add(getMainPanel());

        setSize(width, height);
        setVisible(true);
    }
}
